package src

import org.zkoss.zul.Menubar
import org.zkoss.zul.Menupopup
import org.zkoss.zul.Menuitem
import org.zkoss.zul.Menu


class IndexController { 
    
    def index = { 
        def menuBar = new Menubar()
        def menu  = new Menu()
        def menuPopup = new Menupopup()
        def menuItem = new Menuitem()
        
        menu.setLabel("Menu1")        
        menuItem.setLabel("Item 1") 
        menuPopup.appendChild(menuItem)
        menu.appendChild(menuPopup)
        menuBar.appendChild(menu)
        
        
        [menuBar:menuBar]
    
    }
    def plantilla3 = {

    }
}
